
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import (
    NotificationViewSet, NotificationTemplateViewSet,
    WechatSubscriptionViewSet, MessageRecordViewSet
)

app_name = 'notification_app'

router = DefaultRouter()
router.register(r'notifications', NotificationViewSet)
router.register(r'templates', NotificationTemplateViewSet)
router.register(r'subscriptions', WechatSubscriptionViewSet)
router.register(r'messages', MessageRecordViewSet)

urlpatterns = [
    path('', include(router.urls)),
]